Skip to main content

DescribeStratety

Description

Get the baseline check policy implementation.

Request Method

POST

Request Path

/apsara/route/Sas/DescribeStratety

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
CycleStartTimeintegerno demo valuepolicy execution start time.
EcsCountintegerno demo valuenumber of hosts using this policy.
RequestIdstringno demo valuerequest ID.
CycleDaysintegerno demo valuepolicy execution cycle.
ConfigTargetsarrayno demo valueasset grouping information using this policy. for specific sub-items, see the following parameter description.
Flagstringno demo valueEffective ID: add: indicates a white list, that is, the asset group applies the policy. del: indicates a blacklist, that is, the asset group does not apply this policy. description generally, the system default policy is blacklisted, and user-defined policies are whitelist.
RiskCountintegerno demo valuethe number of risk items contained in the policy.
Namestringno demo valuepolicy name.
ExecStatusintegerno demo valueThe current execution status of this policy: 1: indicates that the execution is complete 2: indicates that it is executing
Targetstringno demo valueasset group ID.
ProcessRateintegerno demo valuepolicy execution percentage progress.
Strategiesarrayno demo valuebaseline check policy execution list. see the following parameter description for specific sub-items.
TargetTypestringno demo valuethe fixed return value is groupId, indicating that the value of the Target parameter is the asset group ID.
Idintegerno demo valuepolicy ID.

Example

Successful Response example

{
"CycleStartTime":"no demo value",
"EcsCount":"no demo value",
"RequestId":"no demo value",
"CycleDays":"no demo value",
"ConfigTargets":"no demo value",
"Flag":"no demo value",
"RiskCount":"no demo value",
"Name":"no demo value",
"ExecStatus":"no demo value",
"Target":"no demo value",
"ProcessRate":"no demo value",
"Strategies":"no demo value",
"TargetType":"no demo value",
"Id":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}